package com.bozhong.solr;

import org.apache.lucene.analysis.util.CharTokenizer;
import org.apache.lucene.util.AttributeFactory;

/**
 * @Email  740970978
 * @author liuhuanchao
 * @since  2017-06-25
 *
 */
public class MyVerticalLineTokenizer extends CharTokenizer {

    public MyVerticalLineTokenizer() {
        
    }
    public MyVerticalLineTokenizer(AttributeFactory factory) {
        super(factory);
      }
      
      /** Collects only characters which do not satisfy
       *  鍙傛暟 c 鎸囩殑鏄痶erm鐨凙SCII鍊硷紝绔栫嚎鐨勫�间负 124  鍙傛暟c鎸囩殑鏄痶erm鐨凙SCII鍊硷紝閫楀彿鐨勫�间负 44
       */
      @Override
      protected boolean isTokenChar(int c) {
        return !(c == 44 );
      }

}